import request from '@/utils/request'

//用户列表查询
export const userListService = (params: any) =>{
    return request.get('/userManagement/page',{params:params})
}
//添加用户
export const addUserService = (userForm: any)=>{
    return request.post('/userManagement',userForm)
}
//修改用户
export const updateUserService = (userForm: any)=>{
    return request.put('/userManagement',userForm)
}
//删除用户
export const deleteUserService = (id: number)=>{
    return request.delete('/userManagement/'+id)
}
//修改用户密码
export const updatePasswordService = (passwordForm: any)=>{
    return request.put('/userManagement/updatePassword',passwordForm)
}
